
package com.seekting.study;

import java.util.concurrent.atomic.AtomicBoolean;

public class AtomicBooleanTeset {

    public static void main(String[] args) {
        AtomicBoolean atomicBoolean = new AtomicBoolean(false);
        boolean a1 = atomicBoolean.compareAndSet(true, true);
        System.out.println(a1);
        System.out.println(atomicBoolean.get());
        a1 = atomicBoolean.compareAndSet(true, true);
        System.out.println(a1);
    }
}
